<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <f:view>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
            <title>Contratos</title>
            <!--<link type="text/css" href="../common/css/redmond/jquery-ui-1.8.23.custom.css" rel="stylesheet" />-->
            <link type="text/css" href="common/css/custom-theme-fritolay/jquery-ui-1.8.4.custom.css" rel="stylesheet" />
            <link type="text/css" href="../common/css/administrar.css" rel="stylesheet" />
            <script type="text/javascript" src="../common/js/jquery-1.4.2.min.js"></script>
            <script type="text/javascript" src="../common/js/jquery.ui.all.js"></script>
            <script type="text/javascript" src="../common/js/jquery.layout.js"></script>
            <script type="text/javascript" src="../common/js/jquery-ui-1.8.6.custom.min.js"></script>
            <script type="text/javascript" src="../common/js/calendarioui-es.js"></script>
            <script type="text/javascript" src="../common/js/jquery.dateentry.js"></script>
            <script type="text/javascript" src="../common/js/admision.js"></script>
            <script type="text/javascript" src="../common/js/jquery.tablesorter.min.js"></script>
            <script type="text/javascript" src="../common/js/jquery.metadata.js"></script>
            <script type="text/javascript" src="../common/js/jquery.tablesorter.pager.js"></script>
            <script type="text/javascript" src="../common/js/jquery.validate.js"></script>
            <script type="text/javascript" src="../common/js/jquery.pagination.js"></script>
            <script type="text/javascript" src="../common/js/jquery.contextMenu.js"></script>
            <link type="text/css" href="../common/css/jquery.contextMenu.css" rel="stylesheet" />
            <link type="text/css" href="../common/css/pagination.css" rel="stylesheet" />
            <script type="text/javascript" src="../common/js/jquery.qtip-1.0.0-rc3.js"></script>
            <script type="text/javascript" src="../common/js/ui.panel.js"></script>
            <style type="text/css" title="currentStyle">
                @import "../common/css/demo_page.css";			
                @import "../common/css/demo_table_jui.css";
            </style>
            <script type="text/javascript" language="javascript" src="../common/js/jquery.dataTables.js"></script>

        </head>
        <body>            
            <h3 style="text-align: center" class="ui-widget-header">Admisi&oacute;n</h3>


            <table width="100%">
                <tr>
                    <td align="left">
                        <button id="nuevaAdmisionBtn">Nueva</button>       
                    </td>
                    <td align="right">
                        <button id="ayudaBtn">Ayuda</button>               
                    </td>
                </tr>
            </table>                
            <div class="tooltips"></div>



            <div id="panel1">   
                <h4>Datos Generales</h4>
                <table>
                    <tr>
                        <td>Identificaci&oacute;n</td>
                        <td>
                            <input type="text" size="10" ondblclick="buscarPacienteCodigo()" maxlength="20" id="identificacion" value=""/>
                            <input type="hidden" id="idpaciente" name="idpaciente" value="" />
                        </td>
                        <td>                                        
                            <img src="../common/img/user_search.png"  onclick="buscarPacienteCodigo()" style="cursor: pointer" alt="buscarPaciente" />
                            <img src="../common/img/edit-clear.png" onclick="clearPacientecodigo()" style="cursor: pointer" alt="Eliminar" />
                        </td>
                        <td>
                            <input type="text" size="40" readonly="true" id="nombres" value="" />

                        </td>
                        <td>                            
                        </td>
                        <td>                            
                        </td>
                    </tr>                    

                    <tr>
                        <td>Administradora</td>
                        <td>
                            <select style="width: 160px" id="id_entidad" name="id_entidad" class="text ui-widget-content"></select>                          
                        </td>
                        <td>
                            Contrato    
                        </td>

                        <td>
                            <select style="width: 350px" id="idcps" name="idcps" class="text ui-widget-content"></select>
                        </td>
                        <td>
                            Autorizaci&oacute;n    
                        </td>                        
                        <td>
                            <input type="text" size="15" id="autorizacion" value="" />
                        </td>
                    </tr>
                    <tr>
                        <td>Via de Ingreso</td>
                        <td>
                            <select style="width: 160px" id="id_via" name="id_via" class="text ui-widget-content"></select>                          
                        </td>
                        <td>
                            Causa Externa
                        </td>

                        <td>
                            <select style="width: 350px" id="id_causaex" name="id_causaex" class="text ui-widget-content"></select>
                        </td>
                        <td>
                            M&eacute;dico
                        </td>

                        <td>
                            <select style="width: 250px" id="id_medico" name="id_medico" class="text ui-widget-content"></select>
                        </td>
                    </tr>
                    <tr>
                        <td>Observaci&oacute;n</td>
                        <td colspan="5">
                            <textarea cols="110" rows="2" id="observacion" name="observacion"></textarea>
                        </td>
                    </tr>

                </table>


                <table>
                    <tr>
                        <td>

                        </td>
                        <td>

                        </td>
                        <td>

                        </td>
                    </tr>
                </table>


            </div>



            <!--Buscar Pacientes-->
            <div id="dialogoBuscarPac" style="display: none" title="PACIENTES">


                <div id="busquedaDivPac">
                    <table width="100%">
                        <tr class="ui-widget-header">
                            <td>
                                Identificaci&oacute;n
                            </td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                        </tr>
                        <tr class="ui-widget-header">                    
                            <td>
                                <input onkeyup="validarBusquedaPac(1)" type="text" id="ide" size="16" maxlength="16"/>
                            </td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                        </tr>

                        <tr class="ui-widget-header">

                            <td>Primer Nombre</td>
                            <td>Segundo Nombre</td>
                            <td>Primer Apellido</td>
                            <td>Segundo Apellido</td>
                        </tr>
                        <tr>                    
                            <td>
                                <input onkeyup="this.value=this.value.toUpperCase();validarBusquedaPac(2)" type="text" id="n1" size="15" maxlength="20"/>
                            </td>
                            <td>
                                <input onkeyup="this.value=this.value.toUpperCase();validarBusquedaPac(2)" type="text" id="n2" size="15" maxlength="20"/>
                            </td>
                            <td>
                                <input onkeyup="this.value=this.value.toUpperCase();validarBusquedaPac(2)" type="text" id="a1" size="15" maxlength="20"/>
                            </td>
                            <td>
                                <input onkeyup="this.value=this.value.toUpperCase();validarBusquedaPac(2)" type="text" id="a2" size="15" maxlength="20"/>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="5" align="center">
                                <input class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" id="buscarPac" type="button" value="Buscar"/>
                            </td>
                        </tr>

                    </table>
                </div>
                <div id="datosPac" style="display: none">
                </div>

            </div>





            <div class="qtip qtip-stylename">
                <div class="qtip-tip" rel="cornerValue"></div>
                <div class="qtip-wrapper">
                    <div class="qtip-borderTop"></div>
                    <div class="qtip-contentWrapper">
                        <div class="qtip-title">
                            <div class="qtip-button"></div>
                        </div>
                        <div class="qtip-content"></div>
                    </div>
                    <div class="qtip-borderBottom"></div>
                </div>
            </div>




        </body>
    </f:view>
</html>
